<template>
	<view>
		<hx-navbar ref="hxnb" :config="config" />
		<view class="flex flex-direction justify-center align-center" style="margin-top: 30rpx;">
			<view style="background: #FFFFFF;border-radius: 20rpx;width: 650rpx;height: 600rpx;"></view>
		</view>
		<view class="shoppingCarts flex ">
			<view class="code" @tap="manufacturer">
				<image style="width: 48rpx;height: 48rpx;" src="/clientEnd/static/plate/chatCots.png" mode="">
				</image>
				<view>联系设计</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				config: {
					title: '我的图纸',
					color: '#111111',
					backgroundColor: [1, '#FFFFFF'],
					border: true,
					// #ifdef H5
					backPage: '',
					// #endif
				},
				dataList: []
			}
		},
		onLoad(e) {
			this.drawing(e.data)
		},
		methods: {
			drawing(e) {
				let data = {
					id: e
				}
				this.$api.sysInformationDetails(data).then((res) => {
					console.log('下次自产自销', res)
					this.dataList = res.data.result
				})
			},
			manufacturer() {
				this.$cache.get('id')
				this.$cache.get('type')
				this.$cache.get('name')
				this.$cache.get('avatar')
				console.log(this.$cache.get('id'), '对对对')
				uni.navigateTo({
					url: '/pages/information/userChat?id=' + this.dataList.id + '&title=' + this.dataList
						.name + '&type=' + 1 + '&myName=' + this.$cache.get('name') +
						'&myIcon=' + this.$cache.get('avatar') + '&avatar=' + this.dataList.avatar + '&sendId=' +
						this.$cache.get('id')
				})
			},
		}
	}
</script>

<style scoped>
	.shoppingCarts {
		width: 100%;
		justify-content: space-between;
		background: #FFFFFF;
		padding: 30rpx;
		position: fixed;
		bottom: 0;
		z-index: -1;
		/* margin: auto 0; */
	}

	.code {
		text-align: center;
		font-size: 24rpx;
		font-weight: 500;
		color: #1E1E1E;
		line-height: 28rpx;
		/* flex-direction: row; */
		/* align-items: center; */
	}

	.buy {
		width: 206rpx;
		height: 72rpx;
		font-weight: 500;
		color: #FFFFFF;
		background: #492D22;
		border-radius: 8rpx;
		line-height: 72rpx;
		text-align: center;
		font-size: 32rpx;
		opacity: 1;
	}
</style>